//import { Vec2, Vec3 } from 'cc';
import { _decorator, Component, Event, Node, Vec2, Vec3 } from 'cc';
import { GameData } from '../../system/GameData';
import { Hp } from './Hp';
import { MoveType, Point } from '../../tools/typings';
import { Move } from './Move';
const { ccclass, property } = _decorator;

@ccclass('TrackMove')
export class TrackMove extends Move {
    // private mV2StartPoint: Vec2 = null;
    // private mV2EndPoint: Vec2 = null;
    // private mSpeed: number = null;
    // private mStart: boolean = false;
    // private mCurDistance = 0;
    // private mIsFinish = false;

    // private mLtPoint: number[][] = [];
    // private mIndex = 0;
    // private mMoveType: MoveType = MoveType.MOVE_BEZIER;
    // private mSegmentNum: number = 50;
    // start() {
    // }
    
    //private mMoveType : MoveType = MoveType.MOVE_BEZIER;
    //private mSegmentNum : number = 50;

    //private mTrackPos : Point [] = [];
    private mTrackPos: Point[] = new Array(64);
    
    InitPointLt(lt: number[][], speed: number) {
        super.InitPointLt(lt, speed);
    }

    UpdateSEPoint() {
        super.UpdateSEPoint();
    }

    InitPoint(pointS: Vec2, pointE: Vec2, mSpeed: number) {
       // super.InitPoint(pointS, pointE, mSpeed);
       
    }

    Reverse(mSpeed: number) {
        super.Reverse(mSpeed);
    }

    update(_deltaTime: number) {
       


    }

}

